package com.example.mybatisplus.mapper;

import com.example.mybatisplus.model.domain.ConsultInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mybatisplus.model.domain.VisitInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * <p>
 * ��ѯ��Ϣ�� Mapper 接口
 * </p>
 *
 * @author lxp
 * @since 2023-10-16
 */
public interface ConsultInfoMapper extends BaseMapper<ConsultInfo> {

    List<ConsultInfo> getAll(@Param("page") Long page, @Param("limit") Long limit,@Param("consultInfo") ConsultInfo consultInfo);

    List<ConsultInfo> getTotal(@Param("consultInfo") ConsultInfo consultInfo);

    ConsultInfo getAllById(@Param("consultId") Long consultId);

    void deleteByConsultIds(@Param("consultIds") List<Long> consultIds);

    void passByConsultId(@Param("consultId") Long consultId, @Param("type") Long type,@Param("status") Long status);

    void modifyConsult(@Param("consultInfo") ConsultInfo consultInfo);

    void modifyResult(@Param("consultInfo") ConsultInfo consultInfo);

    void addCounsult(@Param("consultInfo") ConsultInfo consultInfo);

    List<ConsultInfo> getConsultByVisits(@Param("visitId") String visitId);
}
